package bt08012014;

public class PhanSo {
	private int tu;
	private int mau;
	public PhanSo(int tu, int mau){
		this.tu = tu;
		this.mau = mau;
	}
	public PhanSo tong(PhanSo p){
		int xTu = this.tu*p.mau + this.mau*p.tu;
		int xMau = this.mau*p.mau;
		return new PhanSo(xTu, xMau);
	}
	public String toString(){
		return this.tu + "/" + this.mau;
	}
}

